package com.flyinzhen.customer.repository;

import com.flyinzhen.customer.entity.CustCompanyInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface CustCompanyRepository extends JpaRepository<CustCompanyInfo, Integer> {

	Optional<CustCompanyInfo> findTopByCustIdAndCompanyName(String custId, String companyName);

	List<CustCompanyInfo> findByCustId(String custId);
}